package com.yy.train.ticket.train.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yy.train.ticket.goout.trs.BoxSeat;
import com.yy.train.ticket.goout.TrainBox;
import com.yy.train.ticket.into.page.BoxPage;
import com.yy.train.ticket.train.entity.TtTrainBoxEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 车厢
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2023-09-26 09:47:24
 */
@Mapper
public interface TtTrainBoxDao extends BaseMapper<TtTrainBoxEntity> {

    IPage<TrainBox> boxPage(Page<BoxPage> page,@Param("boxPage") BoxPage boxPage);

    List<BoxSeat> getTrainBoxSeat(Long trainId);
}
